<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s"  uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <script type="text/javascript">
    	function checkRegister(form)
    	{
    		if(from.{member.name}=="")
    		{
    			alert("name is required");
    			return false;
    		}
    		return true;
    	}
    </script>
    <style type="text/css">
    	#registerForm {
    		margin:10em auto;
    		width:350px;
    		padding:2px 5px;
    		background:#f1f1f1;
    		line-height:40px;
    		color:#3489DE;
    	}
    	#registerForm input{
    		height:40px;
    		float:right;
    		width:230px;
    		margin-right:1em;
    	}
    	#registerForm input[type='submit']{
    		float:right;
    		width:80px;
    		border:none;
    		background:#333333;   
    		font-size:15px;
    		color:white;		
    	}
    	#registerForm input[type='submit']:hover{
    		border:1px solid green;
    		background:#553344;
    		font-size:15px;
    		color:white;	
    	}
    	#registerForm input[type='reset']{
    		float:left;
    		width:80px;
    		border:none;
    		background:#333333;   		
    	}
    </style>
  </head>
  
  <body>
    <h3>register</h3>
    <div id="registerForm">
    	<s:form action="member_registerDeal" method="post">
    		<s:textfield name="member.name" label="用户名"/>
    
    		<s:password name="member.passwd" label="密码"/>
    		<s:password name="passwd2" label="密码确认"/>
    		<s:textfield name="member.email" label="邮箱"></s:textfield>
    		<s:submit  value="注册"></s:submit>
    		
    	</s:form>
    </div>
    <s:debug></s:debug>
  </body>

</html>
